package com.tony.guice.Common;

import com.google.inject.ImplementedBy;

/**
 * @version V1.0  </br>
 * @ClassName CreditCardProcessor</br>
 * @Description TODO  </br>
 * @Author tonywang</br>
 * @DATE 2/28/2019 6:09 PM</br>
 */
//等价于 bind(CreditCardProcessor.class).to(PayPalCreditCardProcessor.class);  优先级 bind() 较高
@ImplementedBy(PayPalCreditCardProcessor.class)
public interface CreditCardProcessor {
    ChargeResult charge(String amount, CreditCard creditCard)
            throws Exception;
}
